<?php
//weixin-route
Route::group(['middleware' => ['web', 'auth:admin'],'prefix'=>'wachat','namespace'=>"Modules\Wachat\Http\Controllers"], 
function () {
    Route::get('/','WeixinController@index')->name('wachat');

    Route::resource('/weixin', 'WeixinController')->middleware("permission:admin,resource");
    Route::resource('/wxmenu', 'WxmenuController');
    //定义推送到微信路由
    Route::get('/wxmenu/push/{wxmenu}','WxmenuController@push');
});